import 'package:flutter/material.dart';
import 'package:fluro/fluro.dart';
import 'package:flutter_app10/routers/router_handles.dart';


class AppRouters {


  static String mainPage = "/pages/main/main_page";

  static String myCouponPage = "/pages/main/drawerPages/myCoupinPage";

  static String myCsolPage = "/pages/main/drawerPages/myCsolPage";

  static String orderManagePage = "/pages/main/drawerPages/orderManagePage";

  static String rateSetPage = "/pages/main/drawerPages/rateSetPage";

  static String safetySetPage = "/pages/main/drawerPages/safetySetPage";

  static String settingPage = "/pages/main/drawerPages/settingPage";

  // 币对行情页
  static String currencyMarketPage = "/pages/common/currencyMarketPage";

  // 搜索页
  static String homeSearchPage = "/pages/common/hmeSearchPage";

  // 登录页
  static String loginPage = "/pages/login/loginPage";

  // 登录页
  static String registerPage = "/pages/login/registerPage";




  static void configureRoutes(FluroRouter router) {
    router.notFoundHandler = Handler(
        handlerFunc: (BuildContext context, Map<String, List<String>> params) {
          return Center();
        });

    router.define(mainPage, handler: rootHandle);
    router.define(myCouponPage, handler: myCouponPageHandle);
    router.define(myCsolPage, handler: myCsolPageHandle);
    router.define(orderManagePage, handler:orderManagePageHandle);
    router.define(rateSetPage, handler: rateSetPageHandle);
    router.define(safetySetPage, handler: safetySetPageHandle);
    router.define(settingPage, handler: settingPageHandle);
    router.define(currencyMarketPage, handler: currencyMarketPageHandle);
    router.define(homeSearchPage, handler: homeSearchPageHandle);
    router.define(loginPage, handler: loginPageHandle);
    router.define(registerPage, handler: registerPageHandle);


  }

}